'use strict';

const Controller = require('egg').Controller;

class DetailController extends Controller {
    async index() {
        const { ctx } = this;
        var { id } = ctx.query;
        var res = await ctx.service.movie.getMovieDetail({ id: id });
        ctx.body = {
            msg: "detail",
            res
        }
    }
}

module.exports = DetailController;
